home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 1 Issue 2 / PDCD-1 - Issue 02.iso / _printapps / printapps / printers / !Printers / ps / PSfiles / PSprolog < prev    next >
Text File  |  1991-06-06  |  14KB  |  353 lines

  1. % > <PDriver$Dir>.<PDriver$PSprologue>
  2. % User-editable prologue definitions for the PostScript printer driver
  3. % module.
  4. % Version 2.03, first used with version 2.04 of the module.
  5. % 25 Jan 90: Included all likely font names and Selwyn and Sidney encodings.
  6. %%DocumentFonts: Courier Courier-Oblique Courier-Bold
  7. %%+ Courier-BoldOblique Helvetica Helvetica-Oblique Helvetica-Bold
  8. %%+ Helvetica-BoldOblique NewCenturySchlbk-Bold Times-Roman
  9. %%+ Times-Italic Times-Bold Times-BoldItalic ZapfDingbats
  10. %%+ NewCenturySchlbk-Roman NewCenturySchlbk-Italic
  11. %%+ NewCenturySchlbk-BoldItalic Symbol
  12. %%+ AvantGarde-Book AvantGarde-BookOblique
  13. %%+ AvantGarde-Demi AvantGarde-DemiOblique
  14. %%+ Bookman-Demi Bookman-DemiItalic
  15. %%+ Bookman-Light Bookman-LightItalic
  16. %%+ Palatino-Roman Palatino-Italic
  17. %%+ Palatino-Bold Palatino-BoldItalic
  18. %%+ ZapfChancery-MediumItalic
  19. %%EndComments
  20.  
  21. % If you add further fonts to the '%%DocumentFonts:' and '%%+" comments
  22. % above, make certain that you keep strictly to the format above - in
  23. % particular, all names are case-sensitive, exactly one space should
  24. % appear between the start of the comment and the first font name on
  25. % the line, exactly one space should appear between font names, and
  26. % there should no surplus spaces at the ends of lines.
  27. %   Note also that all PostScript font names quoted in the font
  28. % translation data at the bottom of this file should appear in these
  29. % comments.
  30.  
  31. % Note for advanced users: the printer driver module will remove
  32. % PostScript comments from this file when copying it into the PostScript
  33. % output (to avoid excessive amounts of output) according to the
  34. % following simple algorithm:
  35. %   (a) If a line starts with "%%" or "%!", it is copied without any
  36. %       changes.
  37. %   (b) If a line starts with a "%" and does not start with "%%" or
  38. %       "%!", the whole line is removed, including the new line at the
  39. %       end of it.
  40. %   (c) If a "%" appears anywhere else in a line that does not start
  41. %       with "%%" or "%!", it and all characters up to but not including
  42. %       the following new line are removed.
  43. % In the unlikely event that you wish to add some PostScript containing
  44. % e.g. a string with a "%" in it, use the "\045" escape sequence
  45. % instead.
  46. %   The printer driver will also compress multiple new lines down to
  47. % one new line when copying this file.
  48.  
  49. % CHARACTER ENCODING VECTORS
  50.  
  51. % The following chunk of PostScript defines the ISO 8859-1 Latin 1
  52. % mapping of character codes to PostScript character names, plus
  53. % Acorn's extensions to this character encoding. It can be edited if
  54. % necessary to produce other encodings. Note that PostScript character
  55. % names are case-sensitive. Also note that if you add composite
  56. % characters, you must make certain that all their components appear
  57. % somewhere in the encoding vector - if necessary, among the unused
  58. % codes 0-31.
  59.  
  60. /Latin1Enc [
  61. /dotlessi /ring /.notdef /.notdef       % Codes 0-31 (character
  62. /.notdef /.notdef /.notdef /.notdef     %   components required to
  63. /.notdef /.notdef /.notdef /.notdef     %   make all the composite
  64. /.notdef /.notdef /.notdef /.notdef     %   characters work).
  65. /.notdef /.notdef /.notdef /.notdef
  66. /.notdef /.notdef /.notdef /.notdef
  67. /.notdef /.notdef /.notdef /.notdef
  68. /.notdef /.notdef /.notdef /.notdef
  69. /space /exclam /quotedbl /numbersign    % Codes 32-63
  70. /dollar /percent /ampersand /quotesingle
  71. /parenleft /parenright /asterisk /plus
  72. /comma /hyphen /period /slash
  73. /zero /one /two /three
  74. /four /five /six /seven
  75. /eight /nine /colon /semicolon
  76. /less /equal /greater /question
  77. /at /A /B /C                            % Codes 64-95
  78. /D /E /F /G
  79. /H /I /J /K
  80. /L /M /N /O
  81. /P /Q /R /S
  82. /T /U /V /W
  83. /X /Y /Z /bracketleft
  84. /backslash /bracketright /circumflex /underscore
  85. /grave /a /b /c                         % Codes 96-127
  86. /d /e /f /g
  87. /h /i /j /k
  88. /l /m /n /o
  89. /p /q /r /s
  90. /t /u /v /w
  91. /x /y /z /braceleft
  92. /bar /braceright /tilde /.notdef        % NB code 127 is unused
  93. /.notdef /.notdef /.notdef /.notdef     % Codes 128-139 (Wimp characters)
  94. /.notdef /.notdef /.notdef /.notdef
  95. /.notdef /.notdef /.notdef /.notdef
  96. /.notdef /.notdef /.notdef /bullet      % Codes 140-159 (Acorn extensions)
  97. /quoteleft /quoteright /guilsinglleft /guilsinglright
  98. /quotedblleft /quotedblright /quotedblbase /endash
  99. /emdash /minus /OE /oe
  100. /dagger /daggerdbl /fi /fl
  101. /space /exclamdown /cent /sterling      % Codes 160-191
  102. /currency /yen /brokenbar /section
  103. /dieresis /copyright /ordfeminine /guillemotleft
  104. /logicalnot /hyphen /registered /macron
  105. /degree /plusminus /twosuperior /threesuperior
  106. /acute /mu /paragraph /periodcentered
  107. /cedilla /onesuperior /ordmasculine /guillemotright
  108. /onequarter /onehalf /threequarters /questiondown
  109. /Agrave /Aacute /Acircumflex /Atilde    % Codes 192-223
  110. /Adieresis /Aring /AE /Ccedilla
  111. /Egrave /Eacute /Ecircumflex /Edieresis
  112. /Igrave /Iacute /Icircumflex /Idieresis
  113. /Eth /Ntilde /Ograve /Oacute
  114. /Ocircumflex /Otilde /Odieresis /multiply
  115. /Oslash /Ugrave /Uacute /Ucircumflex
  116. /Udieresis /Yacute /Thorn /germandbls
  117. /agrave /aacute /acircumflex /atilde    % Codes 224-255
  118. /adieresis /aring /ae /ccedilla
  119. /egrave /eacute /ecircumflex /edieresis
  120. /igrave /iacute /icircumflex /idieresis
  121. /eth /ntilde /ograve /oacute
  122. /ocircumflex /otilde /odieresis /divide
  123. /oslash /ugrave /uacute /ucircumflex
  124. /udieresis /yacute /thorn /ydieresis
  125. ] def
  126.  
  127. % This is an encoding vector for a font that is a subset of
  128. % ZapfDingbats. It has some permutations from the original ZapfDingbats
  129. % encoding to ensure that a set of convenient varied bullet characters
  130. % are all drawn together in the codes &61 to &6F.
  131. % These permutations are as follows:
  132. %   swap &25 (a4)  with &61 (a60)
  133. %   move &34 (a20) to   &62
  134. %   move &38 (a24) to   &63
  135. %   swap &48 (a35) with &65 (a64)
  136. %   move &5D (a56) to   &66
  137. %   move &70 (a203)to   &67
  138. %   move &71 (a75) to   &68
  139. %   swap &72 (a204)with &69 (a68)
  140. %   move &75 (a78) to   &6A
  141. %   swap &E7 (a177)with &6B (a70)
  142.  
  143. /SelwynEnc [
  144. /.notdef /.notdef /.notdef /.notdef     % Codes 0-31 (character
  145. /.notdef /.notdef /.notdef /.notdef     %   components required to
  146. /.notdef /.notdef /.notdef /.notdef     %   make all the composite
  147. /.notdef /.notdef /.notdef /.notdef     %   characters work).
  148. /.notdef /.notdef /.notdef /.notdef
  149. /.notdef /.notdef /.notdef /.notdef
  150. /.notdef /.notdef /.notdef /.notdef
  151. /.notdef /.notdef /.notdef /.notdef
  152. /space /a1 /a2 /a202                    % Codes 32-63
  153. /a3 /a60 /a5 /a119
  154. /a118 /a117 /a11 /a12
  155. /a13 /a14 /a15 /a16
  156. /a105 /a17 /a18 /a19
  157. /a61 /a21 /a22 /a23
  158. /a62 /a25 /a26 /a27
  159. /a28 /a6 /a7 /a8
  160. /a9 /a10 /a29 /a30                      % Codes 64-95
  161. /a31 /a32 /a33 /a34
  162. /a64 /a36 /a37 /a38
  163. /a39 /a40 /a41 /a42
  164. /a43 /a44 /a45 /a46
  165. /a47 /a48 /a49 /a50
  166. /a51 /a52 /a53 /a54
  167. /a55 /a65 /a57 /a58
  168. /a59 /a4 /a20 /a24                      % Codes 96-127
  169. /a63 /a35 /a56 /a203
  170. /a75 /a204 /a78 /a177
  171. /a71 /a72 /a73 /a74
  172. /a66 /a67 /a68 /a76
  173. /a77 /a69 /a79 /a81
  174. /a82 /a83 /a84 /a97
  175. /a98 /a99 /a100 /.notdef
  176. /.notdef /.notdef /.notdef /.notdef     % Codes 128-159
  177. /.notdef /.notdef /.notdef /.notdef
  178. /.notdef /.notdef /.notdef /.notdef
  179. /.notdef /.notdef /.notdef /.notdef
  180. /.notdef /.notdef /a91 /a86
  181. /a206 /a93 /a89 /a88
  182. /a205 /a85 /a87 /a92
  183. /a90 /a94 /a95 /a96
  184. /.notdef /a101 /a102 /a103              % Codes 160-191
  185. /a104 /a106 /a107 /a108
  186. /a112 /a111 /a110 /a109
  187. /a120 /a121 /a122 /a123
  188. /a124 /a125 /a126 /a127
  189. /a128 /a129 /a130 /a131
  190. /a132 /a133 /a134 /a135
  191. /a136 /a137 /a138 /a139
  192. /a140 /a141 /a142 /a143               % Codes 192-223
  193. /a144 /a145 /a146 /a147
  194. /a148 /a149 /a150 /a151
  195. /a152 /a153 /a154 /a155
  196. /a156 /a157 /a158 /a159
  197. /a160 /a161 /a163 /a164
  198. /a196 /a165 /a192 /a166
  199. /a167 /a168 /a169 /a170
  200. /a171 /a172 /a173 /a162               % Codes 224-255
  201. /a174 /a175 /a176 /a70
  202. /a178 /a179 /a193 /a180
  203. /a199 /a181 /a200 /a182
  204. /.notdef /a201 /a183 /a184
  205. /a197 /a185 /a194 /a198
  206. /a186 /a195 /a187 /a188
  207. /a189 /a190 /a191 /.notdef
  208. ] def
  209.  
  210. /SidneyEnc [
  211. /.notdef /.notdef /.notdef /.notdef     % Codes 0-31 (character
  212. /.notdef /.notdef /.notdef /.notdef     %   components required to
  213. /.notdef /.notdef /.notdef /.notdef     %   make all the composite
  214. /.notdef /.notdef /.notdef /.notdef     %   characters work).
  215. /.notdef /.notdef /.notdef /.notdef
  216. /.notdef /.notdef /.notdef /.notdef
  217. /.notdef /.notdef /.notdef /.notdef
  218. /.notdef /.notdef /.notdef /.notdef
  219. /space /exclam /universal /numbersign   % Codes 32-63
  220. /existential /percent /ampersand /suchthat
  221. /parenleft /parenright /asteriskmath /plus
  222. /comma /minus /period /slash
  223. /zero /one /two /three
  224. /four /five /six /seven
  225. /eight /nine /colon /semicolon
  226. /less /equal /greater /question
  227. /congruent /Alpha /Beta /Chi            % Codes 64-95
  228. /Delta /Epsilon /Phi /Gamma
  229. /Eta /Iota /theta1 /Kappa
  230. /Lambda /Mu /Nu /Omicron
  231. /Pi /Theta /Rho /Sigma
  232. /Tau /Upsilon /sigma1 /Omega
  233. /Xi /Psi /Zeta /bracketleft
  234. /therefore /bracketright /perpendicular /underscore
  235. /radicalex /alpha /beta /chi            % Codes 96-127
  236. /delta /epsilon /phi /gamma
  237. /eta /iota /phi1 /kappa
  238. /lambda /mu /nu /omicron
  239. /pi /theta /rho /sigma
  240. /tau /upsilon /omega1 /omega
  241. /xi /psi /zeta /braceleft
  242. /bar /braceright /similar /.notdef      % NB code 127 is unused
  243. /.notdef /.notdef /.notdef /.notdef     % Codes 128-159 (unused)
  244. /.notdef /.notdef /.notdef /.notdef
  245. /.notdef /.notdef /.notdef /.notdef
  246. /.notdef /.notdef /.notdef /.notdef
  247. /.notdef /.notdef /.notdef /.notdef
  248. /.notdef /.notdef /.notdef /.notdef
  249. /.notdef /.notdef /.notdef /.notdef
  250. /.notdef /.notdef /.notdef /.notdef
  251. /.notdef /Upsilon1 /minute /lessequal   % Codes 160-191
  252. /fraction /infinity /florin /club
  253. /diamond /heart /spade /arrowboth
  254. /arrowleft /arrowup /arrowright /arrowdown
  255. /degree /plusminus /second /greaterequal
  256. /multiply /proportional /partialdiff /bullet
  257. /divide /notequal /equivalence /approxequal
  258. /ellipsis /arrowvertex /arrowhorizex /carriagereturn
  259. /aleph /Ifraktur /Rfraktur /weierstrass               % Codes 192-223
  260. /circlemultiply /circleplus /emptyset /intersection
  261. /union /propersuperset /reflexsuperset /notsubset
  262. /propersubset /reflexsubset /element /notelement
  263. /angle /gradient /registerserif /copyrightserif
  264. /trademarkserif /product /radical /dotmath
  265. /logicalnot /logicaland /logicalor /arrowdblboth
  266. /arrowdblleft /arrowdblup /arrowdblright /arrowdbldown
  267. /lozenge /angleleft /registersans /copyrightsans   % Codes 224-255
  268. /trademarksans /summation /parenlefttp /parenleftex
  269. /parenleftbt /bracketlefttp /bracketleftex /bracketleftbt
  270. /bracelefttp /braceleftmid /braceleftbt /braceex
  271. /.notdef /angleright /integral /integraltp
  272. /integralex /integralbt /parenrighttp /parenrightex
  273. /parenrightbt /bracketrighttp /bracketrightex /bracketrightbt
  274. /bracerighttp /bracerightmid /bracerightbt /.notdef
  275. ] def
  276.  
  277. % Unless you really know what you are doing, do not edit the following
  278. % PostScript, except for the indicated possible changes.
  279.  
  280. % The size of the following dictionary can be changed. One entry is used
  281. % for each font translation and one entry is used for the system font.
  282. /fonts 100 dict def
  283.  
  284. /ChkCh {
  285.   dup Encoding exch get
  286.   CharStrings exch known {pop} {Encoding exch /.notdef put} ifelse
  287. } bind def
  288.  
  289. /FF {
  290.   3 1 roll
  291.   findfont begin
  292.     currentdict dup maxlength 1 add dict begin
  293.       {1 index /FID ne {def} {pop pop} ifelse} forall
  294.       /Encoding 3 -1 roll 256 array copy def
  295.       /Metrics 1 dict def
  296.       Metrics /.notdef 0 put
  297. % Possible change: Delete or comment out the following line if you
  298. % want undefined PostScript characters to generate errors rather than
  299. % be ignored.
  300.       0 1 255 /ChkCh load for
  301.       dup currentdict
  302.     end
  303.   end
  304.   definefont
  305.   fonts 3 1 roll put
  306. } bind def
  307.  
  308. % The font translation data follows. You can install further
  309. % translations by adding lines of the form:
  310. %   /<RISC OS font name> /<PostScript font name> <encoding name> FF
  311. % Note that all names are case-sensitive. Also note that you should
  312. % add any additional PostScript font names that appear here to the
  313. % '%%DocumentFonts' comment at the head of this file.
  314. %   This line will take a copy of the PostScript font specified, copy
  315. % the specified encoding into it to get the right mapping of character
  316. % codes to characters, change the width of the undefined character to
  317. % zero and install the result as a new font whose name is the RISC OS
  318. % font name. In addition, it checks that all of the characters named
  319. % in the encoding vector exist in the font: any that don't are removed
  320. % (i.e. replaced by '/.notdef') from the new font's encoding.
  321.  
  322. /Churchill.Medium.Italic /ZapfChancery-MediumItalic Latin1Enc FF
  323. /Clare.Medium /AvantGarde-Book Latin1Enc FF
  324. /Clare.Medium.Oblique /AvantGarde-BookOblique Latin1Enc FF
  325. /Clare.Demi /AvantGarde-Demi Latin1Enc FF
  326. /Clare.Demi.Oblique /AvantGarde-DemiOblique Latin1Enc FF
  327. /Corpus.Medium /Courier Latin1Enc FF
  328. /Corpus.Medium.Oblique /Courier-Oblique Latin1Enc FF
  329. /Corpus.Bold /Courier-Bold Latin1Enc FF
  330. /Corpus.Bold.Oblique /Courier-BoldOblique Latin1Enc FF
  331. /Homerton.Medium /Helvetica Latin1Enc FF
  332. /Homerton.Medium.Oblique /Helvetica-Oblique Latin1Enc FF
  333. /Homerton.Bold /Helvetica-Bold Latin1Enc FF
  334. /Homerton.Bold.Oblique /Helvetica-BoldOblique Latin1Enc FF
  335. /NewHall.Medium /NewCenturySchlbk-Roman Latin1Enc FF
  336. /NewHall.Medium.Italic /NewCenturySchlbk-Italic Latin1Enc FF
  337. /NewHall.Bold /NewCenturySchlbk-Bold Latin1Enc FF
  338. /NewHall.Bold.Italic /NewCenturySchlbk-BoldItalic Latin1Enc FF
  339. /Pembroke.Medium /Palatino-Roman Latin1Enc FF
  340. /Pembroke.Medium.Italic /Palatino-Italic Latin1Enc FF
  341. /Pembroke.Bold /Palatino-Bold Latin1Enc FF
  342. /Pembroke.Bold.Italic /Palatino-BoldItalic Latin1Enc FF
  343. /Robinson.Light /Bookman-Light Latin1Enc FF
  344. /Robinson.Light.Italic /Bookman-LightItalic Latin1Enc FF
  345. /Robinson.Demi /Bookman-Demi Latin1Enc FF
  346. /Robinson.Demi.Italic /Bookman-DemiItalic Latin1Enc FF
  347. /Selwyn /ZapfDingbats SelwynEnc FF
  348. /Sidney /Symbol SidneyEnc FF
  349. /Trinity.Medium /Times-Roman Latin1Enc FF
  350. /Trinity.Medium.Italic /Times-Italic Latin1Enc FF
  351. /Trinity.Bold /Times-Bold Latin1Enc FF
  352. /Trinity.Bold.Italic /Times-BoldItalic Latin1Enc FF
  353.